package cn.analysys.dao.ad;

import cn.analysys.model.CategoryDict;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 *
 * @author jiangbang
 * @date 2017/4/19
 */
public interface CategoryDictMapper {

    @Select("select * from category_dict where cate_name = #{name}")
    CategoryDict findByName(@Param("name") String name);

    int insert(CategoryDict record);

    int insertSelective(CategoryDict record);

    List<CategoryDict> queryCategoryDict();

}
